package cn.com.yusys.yusp.admin.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description: 异步日志属性
 * @author: lupan
 * @date: 2018/1/31
 */
@ConfigurationProperties(prefix = "application.log.async", ignoreUnknownFields = true)
public class AsyncLogProperties {
    
    private int corePoolSize = 20;
    
    private int maxPoolSize = 50;
    
    private int queueSize = 100;
    
    private String logProcessor = "cn.com.yusys.yusp.admin.log.BusinessLogProcessor";
    
    public int getCorePoolSize() {
        return corePoolSize;
    }

    public void setCorePoolSize(int corePoolSize) {
        this.corePoolSize = corePoolSize;
    }

    public int getMaxPoolSize() {
        return maxPoolSize;
    }

    public void setMaxPoolSize(int maxPoolSize) {
        this.maxPoolSize = maxPoolSize;
    }

    public int getQueueSize() {
        return queueSize;
    }

    public void setQueueSize(int queueSize) {
        this.queueSize = queueSize;
    }

    public String getLogProcessor() {
        return logProcessor;
    }

    public void setLogProcessor(String logProcessor) {
        this.logProcessor = logProcessor;
    }
}